objects= ans_1d_F.o ans_1d_V_h.o ans_1d_V_non.o ans_2d_F.o ans_2d_V_h.o ans_2d_V_non.o
objects_story=numPDE-pro1.aux numPDE-pro1.log numPDE-pro1.pdf
$(objects) : solver/answer_1D_FMG.cpp solver/answer_1D_Vcycle_homo.cpp solver/answer_1D_Vcycle_nonhomo.cpp solver/answer_2D_FMG.cpp solver/answer_2D_Vcycle_homo.cpp solver/answer_2D_Vcycle_nonhomo.cpp
	g++ -o object/ans_1d_F.o solver/answer_1D_FMG.cpp
	g++ -o object/ans_1d_V_h.o solver/answer_1D_Vcycle_homo.cpp 
	g++ -o object/ans_1d_V_non.o solver/answer_1D_Vcycle_nonhomo.cpp 
	g++ -o object/ans_2d_F.o solver/answer_2D_FMG.cpp 
	g++ -o object/ans_2d_V_h.o solver/answer_2D_Vcycle_homo.cpp
	g++ -o object/ans_2d_V_non.o solver/answer_2D_Vcycle_nonhomo.cpp

.PHONY : run write clean 
run :	
	make math
	make design
	make answers
answers :	
	make
	./object/ans_1d_F.o > answer_/ans_1d_F.txt
	./object/ans_1d_V_h.o > answer_/ans_1d_V_h.txt
	./object/ans_1d_V_non.o > answer_/ans_1d_V_non.txt
	./object/ans_2d_F.o > answer_/ans_2d_F.txt
#Warning：It would be rather time-costly to generate the following 2 results... 3-5 minutes might be needed 
	./object/ans_2d_V_h.o > answer_/ans_2d_V_h.txt
#Caculating... 
	./object/ans_2d_V_non.o > answer_/ans_2d_V_non.txt
#Completed!
math :
	xelatex document/numPDE-pro2.tex	

design:
	doxygen solver/Doxygen_prefer.cfg
	see ../doxygen_generate/doxy_html/inherits.html


